# import re
#
# # str1 = 'PHPSESSID=l8h2lma5avpi225su5i6amuo3g; path=/; secure; HttpOnly'
# str2 = "b'1234'"
#
# # print(re.findall("PHPSESSID=(.+?);", str1))
# data = re.findall("b'(.+?)'", str2)
# if data == ['1234']:
#     print("确定")
# print(re.findall("b'(.+?)'", str2))

str = "string test string test"
find1 = "str"
find2 = "test1"
print(find1 in str)      # True
print(find2 in str)  # False